<?php

require "ErrorHandler.php";


// $res = call_user_func([ErrorHandler::class, 'appError'], 'd','1','3','4');
// var_dump($res);die;

error_reporting(E_ALL);

set_error_handler([ErrorHandler::class, 'appError']);

set_exception_handler([ErrorHandler::class, 'appException']);

register_shutdown_function([ErrorHandler::class, 'appShutdown']);

//trigger_error("A custom error has been triggered");

// echo $name;
// var_dump(error_get_last());
//throw new \Exception("defefef", 11);

// echo "_______start______".PHP_EOL;
// exit();
// echo "_______end________";




?>